Definition:
- The tests have to be executed in a certain order due to dependencies between them.
Also Known As:
- Chained Tests, Chain Gang
Code Example:
class AnimalTest < Test::Unit::TestCase
def test_create_record
a = Animal.create!(name:"Lion")
assert_not_nil a
end
def test_find_record
a = Animal.find_by_name("Lion")
assert_not_nil a
end
end
References:
Quality attributes
- :octicon:`file-code;1em` - Code Example
- :octicon:`comment-discussion;1em` - Cause and Effect
- :octicon:`graph;1em` - Frequency
- :octicon:`sync;1em` - Refactoring